<?php
/**
 * @Name: AccountPasswordRequest.php
 * @Author: yashuai<1762910894@qq.com>
 * @Desc: 账号密码登录
 */

namespace app\common\requests\account;

use app\common\requests\PackingRequest;

class AccountPasswordRequest extends PackingRequest
{

    public function rules()
    {
        return [
            'UserName' => 'require|max:50',
            'Password' => 'require|length:6,32',
        ];
    }

    public function message()
    {
        return [
            'UserName.require' => '请输入账号',
            'UserName.max'      => '账号错误',
            'Password.require' => '密码不能为空',
            'Password.length'  => '密码错误',
        ];
    }

}
